*{
    margin: 0;
    padding: 0;
}
.w{
    width: 1226px;
    margin: auto;
}
#first{
    height: 160px;
}
.first-1{
    width: 100%;
    height: 120px;
}
.first-1-1{
    position: absolute;
    top: 0;
    width: 100%;
    height: 120px;
    background-image: url("../img/img-xiaomi/bg.jpg");
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: auto 120px;
    text-indent: -9999px;
}
.first-2{
    height: 40px;
    background: #333333;
}
.first-2-1{
    height: 40px;
}
.first-2-1 ul{
    width: 770px;
    height: 40px;
    float: left;
    box-sizing: border-box;
    list-style: none;
}
.first-2-1 ul li{
    float: left;
    height: 40px;
}
.first-2-1 ul li a{
    color:#b0b0b0;
    height: 13px;
    display: block;
    line-height: 13px;
    text-decoration: none;
    font-size: 11px;
    position: relative;/*不脱离文档流，定位高于普通*/
    top: 50%;
    margin-top: -6.5px;
    padding-left: 6px;
    padding-right: 6px;
    border-right: 1px solid #423b36;
}
.first-2-1 a:hover,.first-2-1-s a:hover{
    color: #fff;
}
.first-2-1 ul li:nth-child(1) a{
    padding-left: 0;
}
.first-2-1 ul li:nth-child(13) a{
    border-right: 0;
    padding-right: 0;
}
.first-2-1-s{
    width: 456px;
    box-sizing: border-box;
    height: 40px;
    float: left;
    padding-left: 176px;
}
.first-2-1-s a{
    height: 12px;
    font-size: 12px;
    line-height: 12px;
    display: block;
    float: left;
    position: relative;
    top: 50%;
    margin-top: -6px;
    text-decoration: none;
    color:#b0b0b0;
    padding-left: 7px;
    padding-right: 7px;
    border-right: 1px solid #423b36;
}
/*行元素，padding  margin失效*/
.first-2-1-s span{
    color:#b0b0b0;
    font-size: 12px;
    width: 120px;
    height: 40px;
    line-height: 40px;
    display: block;
    float: right;
    text-align: center;
    background: #424242 url("../img/img-xiaomi/bg-car.png") no-repeat 10px center;
    background-size: 22px 22px;
}
#lunbo{
    width: 132px;
    height: 10px;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: transparent;
}
#lunbo li{
    width: 10px;
    height: 10px;
    margin: 0 10px;
    border: 1px solid white;
    border-radius: 50%;
    list-style: none;
    float: left;
}
#lunbo li:hover{
    background: #8c8a8c;
}
#head{
    height: 770px;
    overflow: hidden;/*解决margin的传递Bug，方法有四：1. 使用padding 2. 给父元素添加边框  3. 给父元素或者是该元素添加浮动   4. 给父元素添加overflow:hidden(溢出隐藏) */
}
.head-1{
    height: 55px;
    margin: 22px auto 23px auto;
}
.head-logo{
    width: 55px;
    height: 55px;
    float: left;
    background: #FF6B00;
}
.head-logo:hover a .img1{
    right: -53px;
}
.head-logo:hover a .img2{
    left: 0;
}
.head-logo a{
    width: 55px;
    height: 55px;
    display: block;
    position: relative;
}
.img1{
    right: 2px;
}
.img2{
    left:-53px;
}
.head-logo a img{
    width: 100%;
    height: 100%;
    transition: all 1s;
    position: absolute;
    top: 0;
}
.head-1 ul{
    width: 616px;
    height: 55px;
    float: left;
    list-style: none;
    box-sizing: border-box;
    margin-left: 178px;
}
.head-1 ul li{
    float: left;
    height: 55px;
}
.head-1 ul li a{
    height: 55px;
    text-decoration: none;
    color: #333;
    line-height: 55px;
    padding: 0 10px 0 9px;
}
.head-1 ul li a:hover{
    color:coral;
}
.head-1 .head-form{
    width: 296px;
    height: 55px;
    float: right;
    box-sizing: border-box;
    padding: 3px 0;
}
.head-1 .head-form  from input:nth-child(1){
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    text-indent: 1em;/*或用padding*/
    height: 50px;
    width: 246px;
    float: left;
}
.head-1 .head-form  from input:nth-child(2){
    width: 51px;
    height: 50px;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    background:#fff url("../img/img-xiaomi/img_06.jpg") no-repeat center;
    background-size: 20px 20px;
    float: left;
    margin-left: -3px;
}
.head-1 .head-from  from input:hover{
    border-color: #8c8a8c;
}
.head-1 .head-form  from input:nth-child(2):hover{
    background-color: darkorange;
}
.head-2{
    height: 460px;
    background: url("../img/img-xiaomi/bg-2.png") no-repeat;
    background-size: 100% 100%;
    position: relative;
}
.head-2 ul{
    width: 234px;
    height: 460px;
    box-sizing: border-box;
    background: rgba(105,101,101,.6);/*整体的背景色固定不变*/
    list-style: none;
    padding:20px 0;
}
.head-2 ul li{
    width: 234px;
    height: 42px;
    overflow: hidden;
    background: url("../img/img-xiaomi/箭头.png") no-repeat 200px center;
}
.head-2 ul li a{
    font-size: 14px;
    color: #ffffff;
    height: 42px;
    display: block;
    line-height: 42px;
    margin-left: 30px;
    text-decoration: none;
}
.head-2 ul li:hover{
    background-color: #e36119;
    opacity:1;
}
.head-3{
    height: 170px;
    margin: 14px auto 26px auto;
    /*解决行内元素间的空白缝隙*/
    font-size: 0;
    letter-spacing: -3px;
}
.head-3 ul{
    width: 234px;
    height: 170px;
    box-sizing: border-box;
    display: inline-block;
    background: #5f5750;
    list-style: none;
    padding: 3px;
}
.head-3 ul li{
    width: 70px;
    height: 82px;
    padding: 0 3px;
    font-size: 11px;
    float: left;
}
/*.head-3 ul li:before{
    top: -1px;
    left: 6px;
    width: 64px;
    height: 1px;
}*/
.head-3 ul li a{
    display: block;
    padding-top: 18px;
    text-overflow: ellipsis;/*属性指定当文本溢出包含它的元素，应该发生什么。*/
    color: #fff;
    opacity: .7;
    text-decoration: none;
    text-align: center;
    letter-spacing: 1px;
}
.head-3 ul li a:hover{
    opacity: 1;
}
.head-3 ul li a img{
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto 4px;
}
.head-3 img{
    width: 316px;
    height: 170px;
    margin-left: 14px;
}
.head-3 img:nth-child(3){
    margin-left: 15px;
}
.head-3 img:nth-child(4){
    margin-left: 15px;
}
#body{
    background-color: #f5f5f5;
}
.body-1{
    height: 544px;
    overflow: hidden;
    margin-bottom: 22px;
}
.body-1-2,.body-2-2{
    height: 62px;
}
.title{
    height: 62px;
    margin: 0;
    font-size: 22px;
    font-weight: 200;
    line-height: 62px;
    color: #333;
    float: left;
}
.body-1-2 span{
    width: 34px;
    height: 22px;
    display: inline-block;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    line-height: 22px;
    color: #b0b0b0;
    float: left;
    position: relative;
    top: 50%;
    margin-top: -11px;
    right: -87%;
    border: 1px solid #e0e0e0;
}
.body-1-2 span:nth-of-type(2){
    border-left: 0px;
}
.body-1-2 span:hover{
    color: orange;
}
.des li{
    width: 234px;
    height: 300px;
    list-style: none;
    float: left;
    box-sizing: border-box;
    text-align: center;
    padding: 20px 0;
    background: white;
    margin: 0 0 14px 14px;
    /*过度属性，当状态效果发生改变的时候生效，如高度、CSS3的2D、3D转换等*/
    transition: all 0.6s;
}
.des li:hover,.body-2-1-2 ul li:hover{
    box-shadow: 0 15px 30px rgba(0,0,0,.1);
    transform:translate3d(0,-5px,0);
}
.des li:first-child{
    width: 234px;
    height: 614px;
    margin: 0;
    padding: 0;
}
.des li:first-child img{
    width: 100%;
    height: 100%;
}
.des li img{
    width: 160px;
    height: 160px;
    margin-bottom: 18px;
}
.body-1-1{
    height: 340px;
    margin-bottom: 22px;
    overflow: hidden;
}
.body-1-1 dl{
    width: 234px;
    height: 340px;
    box-sizing: border-box;
    float: left;
    margin-left: 14px;
    text-align: center;
    padding: 54px 0 49px 0;
}
.body-1-1 dl:nth-of-type(1){
    border-top: 1px solid #e53935;
    background-color: #f1eded;
    margin-left: 0;
}
.body-1-1 dl:nth-of-type(1) dt{
    margin: 27px 0;
}
.body-1-1 dl:nth-of-type(1) dd{
    font-size: 17px;
    color: #605751;
}
.body-1-1 dl:nth-of-type(1) dd span{
    width: 46px;
    height: 46px;
    line-height: 46px;
    display: inline-block;
    color: #fff;
    margin: 0 6px;
    background-color: #605751;
}
.body-1-1 dl:nth-of-type(2){
    border-top: 1px solid #00c0a5;
    background-color: #fafafa;
}
.body-1-1 dl:nth-of-type(3){
    border-top: 1px solid #ffac13;
    background-color: #fafafa;
}
.body-1-1 dl:nth-of-type(4){
    border-top: 1px solid #83c44e;
    background-color: #fafafa;
}
.body-1-1 dl:nth-of-type(5){
    border-top: 1px solid #2196f3;
    background-color: #fafafa;
}
.body-1-1 dl:nth-of-type(2) dd,.body-1-1 dl:nth-of-type(3) dd,.body-1-1 dl:nth-of-type(4) dd,.body-1-1 dl:nth-of-type(5) dd {
    height: 22px;
    font-size: 12px;
    color: #202020;
}
.body-2{
    height: 828px;
    margin-bottom: 22px;
    overflow: hidden;
}
.body-2-2 h2{
    height: 58px;
    line-height: 58px;
}
.body-2-2 span{
    font-size: 16px;
    line-height: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
    top: 50%;
    right: -89.2%;
    margin-top: -10px;
    text-align: center;
    float: left;
}
.body-2-2 a span:nth-child(2){
    width: 20px;
    height: 20px;
    line-height: 20px;
    color: #fafdfd;
    margin-left: 3px;
    background-color: #b0b0b0;
    border-radius: 50%;
}
.body-2-2 a:hover span:nth-child(1){
    color: darkorange;
}
.body-2-2 a:hover span:nth-child(2){
    background: darkorange;
}
.body-2-1,.body-3-1{
    height: 614px;
    margin-bottom: 36px;
}
.body-2-1-1{
    width: 234px;
    height: 614px;
    background: url("../img/img-xiaomi/body-2-1.png");
    float: left;
}
.body-2-1-2{
    width: 992px;
    height: 614px;
    float: left;
    overflow: hidden;
}
.body-2-1-2 ul li{
    width: 234px;
    height: 300px;
    box-sizing: border-box;
    padding: 20px 0;
    background: #fff;
    text-align: center;
    float: left;
    list-style: none;
    margin: 0 0 14px 14px;
}
.body-2-1-2 ul li img{
    width: 160px;
    height: 160px;
    margin-bottom: 18px;
}
.titles{
    width: 214px;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    margin:0 10px 2px;
}
.desc{
    /*单行文本不换行*/
    width: 214px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;/*设置完成*/
    margin: 0 10px 10px;
    height: 18px;
    font-size: 12px;
    color: #b0b0b0;
}
.price{
    margin: 0 10px 14px;
    color: #ff6700;font: 14px/1.5 Helvetica Neue,Helvetica,Arial,Microsoft Yahei,Hiragino Sans GB,Heiti SC,WenQuanYi Micro Hei,sans-serif;

}
.spans{
    text-decoration: line-through;
    color: #b7b0b0;
}
.body-3{
    height: 828px;
    margin-bottom: 22px;
    overflow: hidden;
}
#ff:hover{
    color: darkorange;
border-bottom: 1px solid darkorange}
#dd{
    width: 64px;
    color: black;
    border-radius: 0;
    right: -83.5%;
    margin-left: 30px;
    background-color: #f5f5f5;
}
#dd:hover{
    background-color: #f5f5f5;
    color: darkorange;
    border-bottom: 1px solid darkorange;
}
.body-3-1-1{
    width: 234px;
    height: 614px;
}
.body-2-1 img{
    width: 234px;
    height: 300px;
    margin-bottom: 12px;
}
#lis,#li{
    width: 234px;
    height: 93px;
    box-sizing: content-box;
    margin-bottom: 14px;
    position: relative;
    padding: 50px 0 0 0;
}
#lis h3{
    width: 94px;
    height: 42px;
    font-size: 14px;
    font-weight: 400;
    margin: -10px 110px 5px 30px;
}
#lis img{
    position: absolute;
    top: 30px;
    right: 20px;
}
#li p{
    display: block;
    text-align: left;
    margin: 0 110px 0 30px;
    font-size: 18px;
    color: #333;
}
#li p span{
    display: block;
    font-size: 12px;
    color: #757575;
}
#li img{
    width: 50px;
    height: 50px;
    margin-bottom: 0;
    position: absolute;
    right: 34px;
    top: 47px;
}
#foot{
    height: 332px;
    background: #fff;
}
.foot-1{
    height: 80px;
    box-sizing: border-box;
    padding: 27px 0;
    border-bottom: 1px solid #e0e0e0;
}
.foot-1 ul li{
    float: left;
    width: 19.8%;
    height: 25px;
    border-left: 1px solid #e0e0e0;
    font-size: 16px;
    line-height: 25px;
    list-style: none;
    text-align: center;
}
.foot-1 ul li:nth-child(1){
    border-left: 0;
}
.foot-1 ul li img{
    vertical-align: middle;/*图片的对齐方式*/
}
.foot-1 ul li a{
    color: #616161;
    height: 25px;
    line-height: 25px;
    display: inline-block;
    font-size: 16px;
    text-decoration: none;
}
.foot-2{
    height: 252px;
    box-sizing: border-box;
    padding: 40px 0;
}
.foot-2 dl{
    width: 160px;
    margin: 0;
    float: left;
}
.foot-2 dl dt{
    margin: -1px 0 26px;
    font-size: 14px;
    line-height: 1.25;
    color: #424242;
}
.foot-2 dl dd{
    margin: 10px 0 0;
    font-size: 12px;
}
.foot-2 dl dd a{
    text-decoration: none;
    color: #757575;
}
.foot-2-1{
    float: right;
    width: 251px;
    border-left: 1px solid #e0e0e0;
    text-align: center;
    color: #616161;
}
.foot-2-1 p:first-child{
    font-size: 22px;
    line-height: 1;
    color: #ff6700;
}
.foot-2-1 p:nth-child(2){
    margin: 0 0 5px 0;
    font-size: 12px;
}
.foot-2-1 a:nth-child(3){
    width: 118px;
    height: 28px;
    font-size: 12px;
    line-height: 28px;
    display: block;
    margin: 0 auto;
    text-decoration: none;
    border:1px solid #ff6700;
    background: #fff;
    color: #ff6700;
}
.foot-2-1 a:nth-child(3) img{
    vertical-align: middle;
}
.foot-2-1 p:last-child{
    font-size: 12px;
    margin-top: 10px;
    position: relative;
}
.foot-2-1 p a{
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    margin-top: -3px;
    background: url("../img/img-xiaomi/wb.png")  no-repeat;
    background-size: cover;
}
.foot-2-1 p a:last-child{
    background-image: url("../img/img-xiaomi/wx.png");
}